public class FourChapter {
    public static void main(String[] args){
        Dog dog = new Dog();
       // dog.animalKind = "dog";
       // dog.setName("PitBull");
       // dog.printName();
       // dog.shout();
    }
}

class Animal{ 
    String name;
    String animalKind;
    String dogName = "PitBull";
    int a = 1;
    void setName(String name){
        this.name = name; 
    }
    void shout(){
        System.out.println("this annimal start shouting");
    } 
    public Animal(){
        System.out.println("this dog named:" + dogName); 
    }
}

class Dog extends Animal{ 
    int a = 2;
    void printName(){
        System.out.println("this annimal's name is:" + name);
        System.out.println("a:"+ a);
        System.out.println("super a:"+ super.a);
    } 
    void shout(){
        super.shout();
        System.out.println("that is from the dog not annimal");
    } 
    public Dog(){
    }

}